import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/Index'
import BuyCar from '@/pages/BuyCar'
import ShopCarList from '@/pages/ShopCarList'
import Shop from '@/pages/Shop'
import CarDetail from '@/pages/CarDetail'
import Search from '@/pages/Search'
import DownLoad from '@/pages/DownLoad'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/BuyCar',
      name: 'BuyCar',
      component: BuyCar
    },
    {
      path: '/ShopCarList',
      name: 'ShopCarList',
      component: ShopCarList
    },
    {
      path:'/Shop',
      name: 'Shop',
      component: Shop
    },
    {
      path:'/CarDetail',
      name: 'CarDetail',
      component: CarDetail
    },
    {
      path:'/Search',
      name: 'Search',
      component: Search
    },
    {
      path:'/DownLoad',
      name: 'DownLoad',
      component: DownLoad
    }
  ]
})
